package com.android.lovely.data

import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass

/**
 *
 * @author why
 * @date 2025/3/8 01:58
 */
@JsonClass(generateAdapter = true)
data class UserBean(
    @Json(name = "ad_buy_page_max_num") val adBuyPageMaxNum: Int = 0,
    @Json(name = "ad_buy_page_num") val adBuyPageNum: Int = 0,
    @Json(name = "ad_chat_page_interval") val adChatPageInterval: Int = 0, //秒
    @Json(name = "ad_normal_max_num") val adNormalMaxNum: Int = 0,
    @Json(name = "ad_normal_num") val adNormalNum: Int = 0,
    @Json(name = "age") val age: Int = 0,
    @Json(name = "fcm_tag") val fcmTag: List<String> = listOf(),
    @Json(name = "gender") val gender: Int = 0,
    @Json(name = "head_img") val headImg: String = "",
    @Json(name = "id") val id: Int = 0,
    @Json(name = "name") val name: String = "",
    @Json(name = "email") val email: String = "",
    @Json(name = "nsfw_status") val nsfwStatus: Int = 0,
    @Json(name = "point") val point: Int = 0,
    @Json(name = "status") val status: Int = 1,//1=正常状态 2=伪vip 安卓使用
) {

    fun isVip() = status == 2
}
